home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14728 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  682 b 

  1. Path: druid.borland.com!usenet
  2. From: mstave@wpo.borland.com (Matt Stave)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Turbo C++ won't write 0Ah to file!?!?
  5. Date: Mon, 01 Apr 1996 20:59:49 GMT
  6. Organization: Borland International
  7. Message-ID: <4jpg5l$1js@druid.borland.com>
  8. References: <4jnpcg$nis@tribune.concentric.net>
  9. NNTP-Posting-Host: mstave2.borland.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Mike, 
  13.  
  14. Did you open the file in binary mode?
  15.  
  16. FILE *fp;
  17.  
  18. fp = fopen("file.ext","wb");
  19.  
  20. (in c++ look into ios::binary)
  21.  
  22.  
  23. --- Matt
  24.  
  25. mikolaj@concentric.com wrote:
  26.  
  27. >Turbo C++ 3.0 won't write character 0Ah to a file, instead it writes 0Dh.
  28. >What's the problem? Is this a bug?
  29. >Thanks, Mike.
  30.  
  31.  
  32.  
  33.